'''
@auther tianxiaoxi  
@file run_suite by
@time 2021/12/22 20:13
'''

import unittest
import time
from tools.HTMLTestRunner import HTMLTestRunner
import app
from scripts.test01_login import TestLogin

suite = unittest.TestSuite()

suite.addTest(unittest.makeSuite(TestLogin))

# report_path = app.BASE_DIR + "/report/report-{}.html".format(time.strftime("%Y%m%d %H%M%S"))
report_path = app.BASE_DIR + "/report/report.html"

with open(report_path, "wb") as f:
    runner = HTMLTestRunner(f, title="IHRM 测试报告")
    runner.run(suite)
